package zmm

import (
	"context"
	"github.com/tiger1103/gfast/v3/api/v1/zmm"
	"github.com/tiger1103/gfast/v3/internal/app/system/controller"
	"github.com/tiger1103/gfast/v3/internal/app/zmm/service"
)

var ZmmMoneyLogMember = zmmMoneyLogMemberController{}

type zmmMoneyLogMemberController struct {
	controller.BaseController
}

// List 列表
func (c *zmmMoneyLogMemberController) MoneyLogMemberList(ctx context.Context, req *zmm.ZmmMoneyLogMemberListReq) (res *zmm.ZmmMoneyLogMemberListRes, err error) {
	res = new(zmm.ZmmMoneyLogMemberListRes)
	res.Total, res.ZmmMoneyLogMember, err = service.ZmmMoneyLogMember().GetList(ctx, req)
	return
}

func (c *zmmMoneyLogMemberController) MoneyLogShopList(ctx context.Context, req *zmm.ZmmMoneyLogShopListReq) (res *zmm.ZmmMoneyLogShopListRes, err error) {
	res = new(zmm.ZmmMoneyLogShopListRes)
	res.Total, res.ZmmMoneyLogShop, err = service.ZmmMoneyLogShop().GetList(ctx, req)
	return
}
